package com.lemon.springboot.entity;

/**
 * @Author liuli
 * @Date 2020/12/8 7:25
 */
public class Result {
    private String message;
    private String code;
    private Object data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Result setCodeAndMessage(String code, String message){
        this.code = code;
        this.message = message;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
